
public class EquationNode {
	protected String item;
	protected EquationNode leftChild;
	protected EquationNode rightChild;
	
	public EquationNode(){
		item = null;		
		leftChild = null;
		rightChild = null;
	}
	public EquationNode(String str){
		item = str;
		
		leftChild = null;
		rightChild = null;
	}
	public EquationNode(String str, String lc, String rc){
		item = str;
		if(lc != null)
			leftChild = new EquationNode(lc);
		if(rc != null)
			rightChild = new EquationNode(rc);
	}
	public EquationNode(EquationNode en){
		item = en.item;		
		leftChild = en.leftChild;
		rightChild = en.rightChild;
	}
	
	public void setItem(String str){
		item = str;
	}
}